package com.hfzy.ihk.facade.userCenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.hfzy.ihk.common.facade.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用于集成spring security,权限表
 * </p>
 *
 * @author wws
 * @since 2018-12-28
 */
@Data
@Accessors(chain = true)
public class Resource implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer version;

    /**
     * 上级ID
     */
    private Integer parentId;

    /**
     * 资源名,(一级二级菜单名，按钮名，其他页面url)
     */
    private String label;

    /**
     * 资源类型: url,button,menu(一二级),method
     */
    private String type;

    //按钮权限名称
    private String btnPermission;

    private String tooltip;

    /**
     * 资源链接
     */
    private String uri;

    /**
     * 优先权
     */
    private Integer priority;

    /**
     * 是否禁用
     */
    private boolean enabled;

    private Integer createUserId;

    private Date createTime;

    private Integer modUserId;

    private Date modTime;

    private String remark;

    private String css;

    private Boolean lay_is_open;
    public Integer getId() {
        return id;
    }
}
